package sangeng._01;

public class Demo01 {

    public static void main(String[] args) {
        Box<String> box = new Box<>();
        box.setStr("泛型学习");
        
        Box<Integer> box1 = new Box<>();
        box1.setStr(1);

        SubBox subBox = new SubBox();
        subBox.setStr("haha");
        
        SubBox2<Double> subBox2 = new SubBox2<>();
        subBox2.setStr(1.0);

    }
}
